<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <link href="Style/oneColFixCtrHdr.css" type="text/css" rel="stylesheet" />
    </h:head>
    <h:body>
        <div class="header" >

            <h:graphicImage library="Immagini" name="header.jpg" />

            <div class="contenitoreBottoni" style="padding-top: 7px"/>

            <h:form>


                <p:megaMenu style="background: transparent; font-style: italic;">

                    <p:menuitem value="Home" action="ReturnIndex" icon="ui-icon-home"/>
                    <p:menuitem value="Fai la spesa" action="EffettuaSpesa" icon="ui-icon-cart"/>
                    <p:menuitem value="Pannello utente" icon="ui-icon-person" action="#{index.pannelloUtente()}"/>


                    <f:facet name="options">

                        <p:commandButton value="Login" action="EffettuaLogin" style="font-size: 14px" icon="ui-icon-key" rendered="#{!redirect.accesso}"/>
                        <p:commandButton value="Logout" action="#{redirect.logout()}" style="font-size: 14px" icon="ui-icon-extlink" rendered="#{redirect.accesso}"/>
                    </f:facet>
                </p:megaMenu>
            </h:form>
            <div class="contenitoreBottoni" style="padding-top: 7px"/>
        </div>
    </h:body>
</html>

